package cn.hanyx.shirospringboot2.controller;

import cn.hanyx.shirospringboot2.result.Result;
import cn.hanyx.shirospringboot2.result.ResultGenerator;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * IndexController class
 *
 * @author xy_hyx
 * @date 2018-10-30
 */
@RestController
public class IndexController {

    @GetMapping("/helloWorld")
    public Result helloWorld() {
        return ResultGenerator.genSuccessResult("helloWorld");
    }
}
